package com.bw.zg2.view.activity

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.bw.zg2.R
import com.bw.zg2.base.BaseActivity
import com.bw.zg2.databinding.ActivityPayResultBinding
import com.bw.zg2.utils.SpUtil
import com.bw.zg2.viewmodel.GoodsDetailViewModel

class PayResultActivity :
    BaseActivity<GoodsDetailViewModel, ActivityPayResultBinding>(R.layout.activity_pay_result) {
    override fun initData() {
    }

    override fun initView(savedInstanceState: Bundle?) {

        dataBinding.tvPrice.text = "商品价格¥${intent.getIntExtra("price", 0)}"
        dataBinding.tvDesc.text = intent.getStringExtra("desc")
        dataBinding.tvResult.text = "支付状态：支付成功"

        dataBinding.tvMoney.text = "当前账户余额：${SpUtil.getInt("money")}"
    }

}